<extend name="Common/layout"/>
<block name="head_add">
    <script src="__STATIC__/plugin/uploadify/jquery.uploadify.js"></script>

    <script src="__STATIC__/plugin/yeditor/js/yeditor.js"></script>
    <link rel="stylesheet" href="__STATIC__/plugin/yeditor/css/yeditor.css">
</block>
<block name="body">
    <div class="panel">
        <div class="panel-heading">
            插件管理
        </div>
        <div class="panel-body">
            <table class="table table-hover">
                <colgroup>
                    <col width="5%">
                    <col width="15%">
                    <col width="15%">
                    <col width="20%">
                    <col width="10%">
                    <col width="10%">
                    <col width="10%">
                    <col width="15%">
                </colgroup>
                <thead>
                <tr>
                    <!--<th>-->
                        <!--&lt;!&ndash;<input type="checkbox">&ndash;&gt;-->
                    <!--</th>-->
                    <th>ID</th>
                    <th>名称</th>
                    <th>标识</th>
                    <th>描述</th>
                    <th>状态</th>
                    <th>作者</th>
                    <th>版本</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="list" id="addon">
                    <tr>
                        <!--<td>-->
                            <!--&lt;!&ndash;<input type="checkbox">&ndash;&gt;-->
                        <!--</td>-->
                        <td>{$addon.id}</td>
                        <td>{$addon.title}</td>
                        <td>{$addon.name}</td>
                        <td>{$addon.description}</td>
                        <td>
                            <switch name="addon.status">
                                <case value="-1">损坏</case>
                                <case value="0">禁用</case>
                                <case value="1">启用</case>
                                <case value="2">未安装</case>
                            </switch>
                        </td>
                        <td>{$addon.author}</td>
                        <td>{$addon.version}</td>
                        <td>
                            <a href="{:U('Addons/config',array('id'=>$addon['id']))}"><i class="fa fa-cog fa-spin" style="font-size:16px;padding:0 5px;"></i></a>
                            <a href="{:U('Addons/edit',array('id'=>$addon['id']))}"><i class="fa fa-ban fa-spin" style="font-size:16px;padding:0 5px;"></i></a>
                            <a href="{:U('Addons/delete',array('id'=>$addon['id']))}"><i class="fa fa-trash" style="font-size:16px;padding:0 5px;"></i></a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
</block>